#include<stdio.h>
int main()
{
	float xa,xb,ya,yb;
	scanf("%f%f",&xa,&ya);
	scanf("%f%f",&xb,&yb);
	printf("%.3f",sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb)));
    return 0;
}

